// 布局页面
import Layout from '@/layout'

export default [
  {
    path: '/course',
    name: 'course',
    component: Layout,
    hidden: true,
    children: [
      {
        path: '/task/taskDetail',
        name: 'taskDetail',
        component: (resolve) => require(['@/views/student/task/taskDetail'], resolve),
        meta: { title: '任务详情', icon: '' }
      },
      {
        path: '/course/courseDetail',
        name: 'courseDetail',
        component: (resolve) => require(['@/views/student/course/courseDetail'], resolve),
        meta: { title: '课程详情', icon: '' }
      },
      {
        path: '/unit/unitDetail',
        name: 'unitDetail',
        component: (resolve) => require(['@/views/student/unit/unitDetail'], resolve),
        meta: { title: '单元详情', icon: '' }
      }
    ]
  },
  {
    path: '/student',
    name: 'student',
    component: Layout,
    hidden: true,
    children: [
      {
        path: '/class/classDetail',
        name: 'classDetail',
        component: (resolve) => require(['@/views/student/class/classDetail'], resolve),
        meta: { title: '班级详情', icon: '' }
      },
      {
        path: '/student/studentDetail',
        name: 'studentDetail',
        component: (resolve) => require(['@/views/student/student/studentDetail'], resolve),
        meta: { title: '学生详情', icon: '' }
      },
      {
        path: '/student/studentRecord',
        name: 'studentRecord',
        component: (resolve) => require(['@/views/student/student/studentRecord'], resolve),
        meta: { title: '学生课程记录', icon: '' }
      },
      {
        path: '/student/taskInfo',
        name: 'taskInfo',
        component: (resolve) => require(['@/views/student/student/taskInfo'], resolve),
        meta: { title: '学生任务详情', icon: '', keepAlive: false }
      },
      
    ]
  }
]
